package com.woniu.houtai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.houtai.entity.Business;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 09:45:58
 */
public interface BusinessService extends IService<Business> {
    Integer register(String name,String password,String email,String imgSrc,String tel);

    //    根据名字和密码登录
    Integer loginByName(String name,String password);

    String confirmExist(String username, String password, String email, String tel);

    String confirmUsernameExist(String username);

    Business getBusinessByName(String name);
    Business getBusinessByEmail(String email);
    Business getBusinessByTel(String tel);

    Integer updatePassword(Integer id,String password);



    Integer update(Integer id,String name,String password,String email,String img_src,String tel);

}
